<template>
    <div class="recommend">
        <div class="title">周末去哪儿</div>
        <ul>
            <li class="item border-bottom" v-for="item in weekendList" :key="item.id">
                <div class="img-wrapper">
                    <img :src="item.imgUrl" alt="">
                </div>
                <div class="info">
                    <p class="item-title">{{item.title}}</p>
                    <p class="item-desc">{{item.desc}}</p>
                </div>
            </li>
        </ul>
    </div>
</template>

<script>
    export default {
        props:{
            weekendList:Array
        },
        data() {
            return {
                recommendList:[
                    {
                        id:'001',
                        title:'大熊猫大熊猫大熊猫大熊猫大熊猫大熊猫',
                        desc:'大熊猫大熊猫大熊猫吃竹子吃竹子大熊猫大熊猫大熊猫吃竹子吃竹子',
                        url:'http://img1.qunarzz.com/sight/source/1603/6d/2f67ae0659f41f.jpg_r_640x214_bf6cbd0b.jpg',
                    },
                    {
                        id:'002',
                        title:'大熊猫大熊猫大熊猫大熊猫大熊猫大熊猫',
                        desc:'大熊猫大熊猫大熊猫吃竹子吃竹子大熊猫大熊猫大熊猫吃竹子吃竹子',
                        url:'http://img1.qunarzz.com/sight/source/1811/f3/86173f863bef61.jpg_r_640x214_52b003ac.jpg',
                    },
                    {
                        id:'003',
                        title:'大熊猫大熊猫大熊猫大熊猫大熊猫大熊猫',
                        desc:'大熊猫大熊猫大熊猫吃竹子吃竹子大熊猫大熊猫大熊猫吃竹子吃竹子',
                        url:'http://img1.qunarzz.com/sight/source/1505/9e/21df651e19af5d.jpg_r_640x214_3ea5bb38.jpg',
                    },
                ]
            }
        },
    }
</script>

<style lang="stylus" scoped>
@import '~@/assets/css/minis.styl'
    .recommend
        line-height .8rem
        text-indent .2rem
        margin-top .2rem
        .img-wrapper
            height 0
            overflow hidden
            padding-bottom 37.09%
            img
                width 100%
                padding .1rem
        .info 
            padding .1rem
            .item-title
                line-height .54rem
                font-size .32rem
                ellipsis()
            .item-desc
                line-height .4rem
                color #ccc
                ellipsis()
           

</style>